factors affecting photosynthesis in plants